<!DOCTYPE html>
<html lang="en">
<head>
<script src="js/jquery.min.js"></script>
<script src="js/globalvalues.js"></script>	
<link href="css/style.css" rel="stylesheet">
<link href="css/default.css" rel="stylesheet">	

</head>
	
<body>
  <div class="header">
  <div class="container">
	<div style="float:left;">
		<img style="width:80px;" src="images/logo1.png"/>
	</div>
	<?php
	ini_set('display_errors', '0');
	include("connection.php");
	$advertisement = mysql_query("select * from advertisement");
	$data=mysql_fetch_object($advertisement);
	session_start();
	?>
	<header>    
		<?php 
		$page=basename($_SERVER['PHP_SELF']);
		if(isset($_SESSION['admin_id']) && $_SESSION['admin_id']!='')
		{?>
		<a class="log_out" href="logout.php">Logout</a>	
		<?}else if($page!='index.php' && $page!='forgot-password.php' && $page!='reset-password.php'){header("location:index.php");}?>	
							
	</div>
	</div>
	</header>    